package cn.ycc1.springaop.calculator.impl;

import cn.ycc1.springaop.calculator.MathCalculator;
import org.springframework.stereotype.Service;

/**
 * @author ycc
 * @date 2024/11/11
 */
@Service
public class MathCalculatorImpl implements MathCalculator {

    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public int sub(int a, int b) {
        return a - b;
    }

    @Override
    public int mul(int a, int b) {
        return  a * b;
    }

    @Override
    public int div(int a, int b) {
        return  a / b;
    }
}
